﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace Cam
{
    class GameScreen : IScreen
    {
        //map
        private Map.Map Map = new Map.Map();

        //the tank manager
        private Tanks.TankManager TankManager = new Tanks.TankManager();
        public void Load(Microsoft.Xna.Framework.Content.ContentManager Content)
        {
            // loading tanks
            TankManager.Load(Content);
            //map
            Map.Load(Content);
        }


        public Game1.Screen Update(GameTime Gametime)
        {
            
            //updates the tank
            TankManager.Update(Gametime);

            return Game1.Screen.GameScreen;
        }

        public void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch)
        {
            //draw the tank
            TankManager.Draw(SpriteBatch);
            //map
            Map.Draw(SpriteBatch);
        }
    }
}
